package com.hspedu.exception_;

/**
 * @author DL5O
 * @version 1.0
 */
public class NumberFormatException {
    public static void main(String[] args) {
//        String name = "1234";
        String name = "韩顺平";

        //将String 转成 Int
        int num = Integer.parseInt(name);
        System.out.println(num);//1234
    }
}

